Skip to content

Add option to automatically redirect unprefixed routes - #94

Open
fyrts wants to merge 2 commits into
chinleung:v4from
fyrts:v4
Open

Add option to automatically redirect unprefixed routes#94
fyrts wants to merge 2 commits into
chinleung:v4from
fyrts:v4

Conversation

@fyrts

@fyrts fyrts commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

When prefix_default is enabled, the unprefixed URL currently results in a 404 unless a custom redirect is implemented. This PR introduces a redirect_unprefixed config option that enables automatic redirects to the default locale. Both prefix_default and prefix_default_home are respected, and parameters are preserved. It's disabled by default, so that it doesn't conflict with existing implementations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant